package com.jiyun.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jiyun.dto.RoomRecordDto;
import com.jiyun.entity.RoomRecord;
import com.jiyun.mapper.RoomRecordMapper;
import com.jiyun.service.IRoomRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 聪哥哥
 * @since 2023-04-18
 */
@Service
public class RoomRecordServiceImpl extends ServiceImpl<RoomRecordMapper, RoomRecord> implements IRoomRecordService {

    @Autowired
    RoomRecordMapper recordMapper;


    @Override
    public Page<RoomRecordDto> findPage(Integer page, Integer pageSize, String xuehao) {


        Page<RoomRecordDto> recordDtoPage = new Page<>(page,pageSize);

        recordMapper.findPage(recordDtoPage,xuehao);




        return recordDtoPage;
    }
}
